package cn.com.server.entity;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 告警信息表
 * </p>
 *
 * @author qing
 * @since 2017-11-15
 */
@SuppressWarnings("serial")
public class Warn implements Serializable {


   /**
     * 主键
     */
	private Long id;
   /**
     * 用户主键
     */
	private Long userId;
   /**
     * 告警名称
     */
	private String name;
   /**
     * 告警事件
     */
	private String events;
   /**
     * 事件详细内容
     */
	private String content;
   /**
     * 类型
     */
	private Integer type;
   /**
     * 状态，1：正常
     */
	private Integer status;
   /**
     * 级别
     */
	private Integer rank;
   /**
     * 更新时间
     */
	private Date updateTime;
   /**
     * 创建时间
     */
	private Date createTime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	public String getEvents() {
		return events;
	}

	public void setEvents(String events) {
		this.events = events;
	}
	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}
	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}
	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}
	public Integer getRank() {
		return rank;
	}

	public void setRank(Integer rank) {
		this.rank = rank;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",locale="zh",timezone = "GMT+8")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return "Warn{id=" + id + ", userId=" + userId + ", name=" + name + ", events=" + events + ", content="
				+ content + ", type=" + type + ", status=" + status + ", rank=" + rank + ", updateTime=" + updateTime
				+ ", createTime=" + createTime + "}";
	}
	
	
}